﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls.Primitives;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows;
using Wpf.Ui.Controls;
using System.Configuration;
using Rj_GsInsurance.Client.Pages;

namespace Rj_GsInsurance.Client.ViewModels
{
    public partial class MainWindowViewModel : ObservableObject
    {
        [ObservableProperty]
        private string _applicationTitle = "工伤医保管理";

        [ObservableProperty]
        private ICollection<object> _menuItems = new ObservableCollection<object>
        {
            //new NavigationViewItem("主页", SymbolRegular.Home24, typeof(DashboardPage)),
            new NavigationViewItem("主页", SymbolRegular.List24, typeof(AllControlsPage)),
            new NavigationViewItemSeparator(),
            new NavigationViewItem()
            {
                Content = "上传",
                Icon = new SymbolIcon { Symbol = SymbolRegular.DesignIdeas24 },
                MenuItemsSource = new object[]
                {
                    new NavigationViewItem("医师信息上传", SymbolRegular.Doctor24, typeof(DocUploadPage)),
                    new NavigationViewItem("科室信息上传", SymbolRegular.DeviceMeetingRoom24, typeof(DevUploadPage)),
                    new NavigationViewItem("审批信息上报", SymbolRegular.AlbumAdd24, typeof(ApprovalManagePage)),
                }
            },
            new NavigationViewItem()
            {
                Content = "下载",
                Icon = new SymbolIcon { Symbol = SymbolRegular.ArrowDownload24 },
                MenuItemsSource = new object[]
                {
                    new NavigationViewItem("三目下载", SymbolRegular.DrawerArrowDownload24, typeof(InsurDownLoadPage)),
                }
            },
            new NavigationViewItem()
            {
                Content = "医保目录管理",
                Icon = new SymbolIcon { Symbol = SymbolRegular.BookCoins24 },
                MenuItemsSource = new object[]
                {
                    new NavigationViewItem("医保对照", SymbolRegular.TabInprivateAccount24, typeof(InsurCatalogueManagePage)),
                }
            },
            new NavigationViewItem()
            {
                Content = "结算数据管理",
                Icon = new SymbolIcon { Symbol = SymbolRegular.ArrowTrendingText24 },
                MenuItemsSource = new object[]
                {
                    new NavigationViewItem("对账", SymbolRegular.ClipboardTaskListLtr24, typeof(ReconciliationPage)),
                }
            },

        };

        [ObservableProperty]
        private ICollection<object> _footerMenuItems = new ObservableCollection<object>()
        {
            new NavigationViewItem("设置", SymbolRegular.Settings24, typeof(SettingsPage))
        };

        [ObservableProperty]
        private ObservableCollection<Wpf.Ui.Controls.MenuItem> _trayMenuItems =
        new()
        {
            new Wpf.Ui.Controls.MenuItem { Header = "Home", Tag = "tray_home" },
            new Wpf.Ui.Controls.MenuItem { Header = "Close", Tag = "tray_close" }
        };
    }
}
